<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Page</title>
    <link th:href="@{/static/css/bootstrap.min.css}" rel="stylesheet">
    <style>
        body {
            background-image: url('static/img/login.png');
            background-size: cover; /* 覆盖整个页面 */
            background-position: center; /* 图片居中显示 */
            background-repeat: no-repeat; /* 不重复 */
            /* background-color: #f8f9fa;*/
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .login-form {
            background-color: #ffffff;
            border: 1px solid #ced4da;
            border-radius: 5px;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
            padding: 30px;
            width: 100%;
            max-width: 400px;
            margin: auto; /* 居中 */
        }
        .login-heading {
            text-align: center;
            margin-bottom: 30px;
        }
        .col-md-8{
            margin:auto;
            max-width: 100%; /* 如果需要，设置最大宽度 */
        }
    </style>
</head>
<body>



<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="login-form">
                <h2 class="login-heading">Login</h2>
                <form action="/app/login" method="post">
                    <div class="form-group">
                        <input type="text" class="form-control" id="username" name="username" placeholder="Username" required>
                    </div>
                    <div class="form-group">
                        <input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary btn-block">Login</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script th:src="@{/static/js/bootstrap.min.js}"></script>
</body>
</html>
